// ToolBox.h: interface for the CToolBoxBar class.
//

#pragma once

class GEOMUIAPI CToolBoxBarEx : public CBCGPToolBoxEx
{
// Construction
public:
	CToolBoxBarEx();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CToolBoxBarEx)
	//}}AFX_VIRTUAL
	HICON DefaultIcon(){return m_hIconDefault;}
protected:
	CMap<ULONG,ULONG,CString, const CString&>	m_mapCommand;
	//virtual BOOL OnShowToolboxMenu (CPoint point, CBCGPToolBoxPage* pPage, int nHit);
	HICON	m_hIconDefault;
// Implementation
public:
	virtual ~CToolBoxBarEx();
	void OnToolSelected();
	void SetCommandMap(UINT nID, const CString& guid);
	// Generated message map functions
protected:
	void InitCommandMap();
	CString IdToString(int nPage, int nTool);
	//{{AFX_MSG(CToolBoxBarEx)
	////}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};

